<?php

namespace App\Http\Requests\Setting;

use App\Http\Requests\FormRequest;

class UserStoreRequest extends FormRequest
{
    public function rules(): array
    {
        return [
            'nickname' => 'required|string|max:5',
            'account' => 'required|string|max:20',

            'roles' => 'required|array',
            'roles.*' => 'required|integer',
        ];
    }
}
